home *** CD-ROM | disk | FTP | other *** search
/ FishMarket 1.0 / FishMarket v1.0.iso / fishies / 301-325 / disk_325 / fam / minrexx.h < prev    next >
C/C++ Source or Header  |  1992-05-06  |  1KB  |  46 lines

  1. /*
  2.  *   Includes for minrexx.c; please refer to that file for
  3.  *   further documentation.
  4.  */
  5. #include <rexx/rxslib.h>
  6. /*
  7.  *   This is the list of functions we can access.  (Cheap forward
  8.  *   declarations, too.)
  9.  */
  10. long __stdargs upRexxPort (char * s, struct rexxCommandList * rcl, char * exten, int (*uf)()) ;
  11. void __stdargs dnRexxPort (void) ;
  12. void __stdargs dispRexxPort (void) ;
  13. struct RexxMsg * __stdargs sendRexxCmd (char * s,int (*f)(),STRPTR p1,STRPTR p2,STRPTR p3) ;
  14. struct RexxMsg * __stdargs syncRexxCmd (char * s, struct RexxMsg * msg) ;
  15. struct RexxMsg * __stdargs asyncRexxCmd (char * s) ;
  16. void __stdargs replyRexxCmd (struct RexxMsg * msg, long primary, long secondary, char * string) ;
  17. /* These two made public by DHN: */
  18. int __stdargs openRexxLib(void);
  19. void __stdargs closeRexxLib(void);
  20.  
  21. /*
  22.  *   Maximum messages that can be pending, and the return codes
  23.  *   for two bad situations.
  24.  */
  25. #define MAXRXOUTSTANDING (300)
  26. #define RXERRORIMGONE (100)
  27. #define RXERRORNOCMD (30)
  28. /*
  29.  *   This is the association list you build up (statically or
  30.  *   dynamically) that should be terminated with an entry with
  31.  *   NULL for the name . . .
  32.  */
  33. struct rexxCommandList {
  34.    char *name ;
  35.    APTR userdata ;
  36. } ;
  37.  
  38.  
  39. /*
  40.  * Added 01-Feb-90 Darren New. If non-NULL, any non-rexx messages in
  41.  * the port when dispRexxPort() is called will be passed here.
  42.  * Return value is ignored.
  43.  */
  44. extern int (*HandleNonRexx)(struct Message *);
  45.  
  46.